package cn.iocoder.yudao.adminserver.modules.live.convert.project;

import cn.iocoder.yudao.adminserver.modules.live.controller.project.vo.*;
import cn.iocoder.yudao.adminserver.modules.live.dal.dataobject.project.LiveProjectDO;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 项目 Convert
 *
 * @author 芋艿
 */
@Mapper
public interface LiveProjectConvert {

    LiveProjectConvert INSTANCE = Mappers.getMapper(LiveProjectConvert.class);

    LiveProjectDO convert(LiveProjectCreateReqVO bean);

    LiveProjectDO convert(LiveProjectUpdateReqVO bean);

    LiveProjectRespVO convert(LiveProjectDO bean);

    List<LiveProjectRespVO> convertList(List<LiveProjectDO> list);

    PageResult<LiveProjectRespVO> convertPage(PageResult<LiveProjectDO> page);

    List<LiveProjectExcelVO> convertList02(List<LiveProjectDO> list);

    List<LiveProjectAndPlanRespVO> convertList03(List<LiveProjectDO> list);

}
